package org.lq.shopping.entity;

import java.io.Serializable;

/**
 * 
 * @author 赵得福/陈博强/范文杰
 *
 * @时间 2018年9月26日
 * Shopping_LQ
 */
public class ShopPmethod implements Serializable{
	
	/**
	 * 序列版本号
	 */
	private static final long serialVersionUID = -6123577543536013703L;
	private int payid;//付款方式主键
	private String pmethod;//支付方式
	private int enable;//是否启用（有的商品不支持货到付款）
	
	public int getPayid() {
		return payid;
	}
	public void setPayid(int payid) {
		this.payid = payid;
	}
	public String getPmethod() {
		return pmethod;
	}
	public void setPmethod(String pmethod) {
		this.pmethod = pmethod;
	}
	public int getEnable() {
		return enable;
	}
	public void setEnable(int enable) {
		this.enable = enable;
	}
	@Override
	public String toString() {
		return "ShopPmethod [payid=" + payid + ", pmethod=" + pmethod + ", enable=" + enable + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + enable;
		result = prime * result + payid;
		result = prime * result + ((pmethod == null) ? 0 : pmethod.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ShopPmethod other = (ShopPmethod) obj;
		if (enable != other.enable)
			return false;
		if (payid != other.payid)
			return false;
		if (pmethod == null) {
			if (other.pmethod != null)
				return false;
		} else if (!pmethod.equals(other.pmethod))
			return false;
		return true;
	}
	
}
